<?php
/**
 * Created by PhpStorm.
 * User: ADMIN
 * Date: 2021/5/31
 * Time: 17:58
 */
namespace app\adminapi\validate;

use app\common\model\Admin;

class AdminList extends Base
{
    protected $rule = [
        'page' => 'integer|min:1',
        'limit' => 'integer|min:1|max:20',
    ];

    protected $message = [
        'page.integer' => '参数page只能是数字',
        'page.min' => '参数page最小值为1',

        'limit.integer' => '参数limit只能是数字',
        'limit.min' => '参数limit最小值为1',
        'limit.max' => '参数limit最大值为20',
    ];

}